# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="distilbert/distilgpt2")

generator = pipe(
    "In this course, we will learn to how to use Hugging Face",
    num_return_sequences=2
    )

print(generator)